package com.happy.sky.arithmetic;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @name: ArraySortTest <tb>
 * @title: 请输入类描述  <tb>
 * @author: cuixinfu@51play.com <tb>
 * @date: 2021/11/17 10:21:09 <tb>
 */
public class ArraySortTest {
    public static void main(String[] args) {

        String source = "RESERVE_PLAN_MANAGER_PLAN_UPDATE,DANGEROUS_TYPE_MANAGER_DANGEROUS_DELETE,RISK_SCORE_MANAGER_RISK_SCORE_UPDATE,MESSAGE_MANAGER_MESSAGE_QUERY_LIST,LOGIN_MANAGER_LOGIN_PC,CAR_MANAGER_DEVICE_QUERY_LIST,FLOOR_UNIT_MANAGER_FLOOR_UPDATE,INSPECTION_PLAN_MANAGER,MESSAGE_MANAGER_MESSAGE_ADD,ROOM_MANAGER_ROOM_UPDATE,USER_MANAGER_USER_UPDATE_MESSAGE,DANGEROUS_TYPE_MANAGER,CAR_MANAGER_DEVICE_DELETE,ACTIVITY_MANAGER_ACTIVITY_ADD,REMIND_MANAGER_EXPORT_LIST,FLOOR_UNIT_MANAGER_FLOOR_QUERY_LIST,RISK_TEMPLATE_MANAGER_RISK_TEMPLATE_QUERY_LIST,WORK_PUNCH_MANAGER,INSPECTION_PUNCH_LOG_MANAGER,ALARM_MANAGER,SYSTEM_SETTING_MANAGER,PERMISSION_MANAGER_PERMISSION_QUERY_ROLE_SOURCE_LIST,FLOOR_MANAGER_FLOOR_UPDATE,UNIT_MANAGER_UNIT_ADD,UNIT_SETTING_MANAGER_UNIT_TO_ACCEPT_THE_ALARM_TYPE,INSPECTION_PLAN_MANAGER_EXPORT_NFC_NODE,UNIT_MANAGER_UPDATE_UNIT_TYPE,LOGIN_MANAGER_LOGIN_APP,RISK_SCORE_MANAGER_RISK_SCORE_QUERY_LIST,GRID_MANAGER_GRID_QUERY_LIST,SYSTEM_SETTING_MANAGER_UPDATE_DEVICE_TYPE_LIST,DANGEROUS_TYPE_MANAGER_DANGEROUS_ADD,BUILDING_MANAGER_BUILDING_QUERY_LIST,CAR_MANAGER_DEVICE_ADD,DANGEROUS_MANAGER_DANGEROUS_QUERY_LIST,PERMISSION_MANAGER_PERMISSION_QUERY_ROLE_LIST,ON_DUTY_CHECK_MANAGER_LIST,ON_DUTY_CHECK_MANAGER,DEVICE_MANAGER,INSPECTION_PLAN_MANAGER_INSPECTION_START,RISK_TEMPLATE_MANAGER_RISK_TEMPLATE_UPDATE,DEVICE_MANAGER_DEVICE_DELETE,ON_DUTY_CHECK_MANAGER_EXECUTE,ROOM_MANAGER_ROOM_QUERY_LIST,USER_REVIEW_MANAGER_USER_REVIEW,INSPECTION_PLAN_MANAGER_INSPECTION_PUNCH,PERMISSION_MANAGER,GRID_USER_MANAGER_GRID_USER_QUERY_LIST,FLOOR_UNIT_MANAGER_FLOOR_ADD,GRID_MANAGER,ON_DUTY_CHECK_MANAGER_RECORD_ERROR_REVISE,OPERATION_LOG_MANAGER_OPERATION_LOG_QUERY_LIST,TROUBLE_MANAGER_TROUBLE_DISPOSE,UNIT_SETTING_MANAGER_UPDATE_WORK_PUNCH,RISK_WARN_LOG_MANAGER_QUERY_LIST,PUNCH_MANAGER,UNIT_MANAGER_UNIT_DELETE,ROOM_MANAGER_ROOM_ADD,DANGEROUS_MANAGER_DANGEROUS_ADD,INSPECTION_PUNCH_LOG_MANAGER_INSPECTION_PUNCH_LOG_QUERY_LIST,INSPECTION_PLAN_MANAGER_INSPECTION_UPDATE,REMIND_MANAGER_QUERY_LIST,PUNCH_MANAGER_PUNCH_QUERY_PUNCH,RESERVE_PLAN_MANAGER_PLAN_ADD,SUPERVISE_MANAGER,RISK_TEMPLATE_MANAGER,RESERVE_PLAN_MANAGER_PLAN_QUERY_LIST,RESERVE_PLAN_MANAGER_PLAN_DELETE,DANGEROUS_TYPE_MANAGER_DANGEROUS_UPDATE,USER_MANAGER_USER_DELETE,DANGEROUS_MANAGER,RESERVE_PLAN_MANAGER,BUILDING_MANAGER,LOGIN_MANAGER,DANGEROUS_TYPE_MANAGER_DANGEROUS_QUERY_LIST,TROUBLE_MANAGER_TROUBLE_ADD,ON_DUTY_CHECK_MANAGER_RECORD_LIST,UNIT_SETTING_MANAGER_UPDATE_UNIT_SHOW,OPERATION_LOG_MANAGER,DANGEROUS_MANAGER_DANGEROUS_DISPOSE,ROOM_MANAGER_ROOM_DELETE,CAR_MANAGER,FLOOR_UNIT_MANAGER_FLOOR_DELETE,PERMISSION_MANAGER_PERMISSION_UPDATE,TROUBLE_MANAGER_TROUBLE_QUERY_LIST,INSPECTION_PLAN_MANAGER_INSPECTION_DELETE,GRID_USER_MANAGER,OPERATION_LOG_MANAGER_OPERATION_LOG_RECOVERY,UNIT_MANAGER_UNIT_UPDATE,USER_REVIEW_MANAGER,RISK_WARN_LOG_MANAGER,INSPECTION_PLAN_MANAGER_INSPECTION_STOP,FLOOR_UNIT_MANAGER,SUPERVISE_MANAGER_UPDATE_OTHER_UNIT_DATA,INSPECTION_PLAN_MANAGER_INSPECTION_ADD,DEVICE_MANAGER_DEVICE_ADD,BUILDING_MANAGER_BUILDING_DELETE,WORK_PUNCH_MANAGER_WORK_PUNCH_QUERY_PUNCH,PUNCH_MANAGER_PUNCH_OPEN_OR_CLOSE,DANGEROUS_MANAGER_DANGEROUS_DELETE,ON_DUTY_CHECK_MANAGER_SET,GRID_MANAGER_GRID_UPDATE,ON_DUTY_CHECK_MANAGER_OPEN_OR_CLOSE,GRID_MANAGER_GRID_ADD,WORK_PUNCH_MANAGER_WORK_PUNCH_PUNCH_OPEN_OR_CLOSE,UNIT_SETTING_MANAGER,UNIT_MANAGER_UNIT_QUERY_LIST,INSPECTION_PLAN_MANAGER_INSPECTION_QUERY_LIST,DEVICE_MANAGER_DEVICE_UPDATE,USER_MANAGER_USER_ADD_OR_UPDATE,ALARM_MANAGER_ALARM_ADD,FLOOR_MANAGER_FLOOR_ADD,ACTIVITY_MANAGER,USER_MANAGER_USER_QUERY_LIST,USER_MANAGER_USER_QUERY_ORBIT,BUILDING_MANAGER_BUILDING_ADD,DEVICE_MANAGER_DEVICE_QUERY_LIST,DANGEROUS_TYPE_MANAGER_DANGEROUS_QUERY_LIST_PAGER,UNIT_MANAGER_UNIT_QUERY_UNIT_MESSAGE_SETTING,REMIND_MANAGER,ON_DUTY_CHECK_MANAGER_RECORD_CHECK_REVISE,ALARM_MANAGER_ALARM_QUERY_LIST,RISK_SCORE_MANAGER,USER_MANAGER,UNIT_MANAGER,FLOOR_MANAGER,FLOOR_MANAGER_FLOOR_QUERY_LIST,MESSAGE_MANAGER,TROUBLE_MANAGER,DANGEROUS_MANAGER_DANGEROUS_UPDATE,ACTIVITY_MANAGER_ACTIVITY_QUERY_LIST,ROOM_MANAGER,BUILDING_MANAGER_BUILDING_UPDATE,GRID_USER_MANAGER_GRID_USER_UPDATE,FLOOR_MANAGER_FLOOR_DELETE,UNIT_SETTING_MANAGER_UPDATE_PUNCH_SET,GRID_MANAGER_GRID_DELETE,INSPECTION_PLAN_MANAGER_INSPECTION_UPDATE_NFC,UNIT_MANAGER_UNIT_UPDATE_UNIT_MESSAGE_SETTING,USER_REVIEW_MANAGER_USER_QUERY_REVIEW_LIST,CAR_MANAGER_DEVICE_UPDATE,SYSTEM_SETTING_MANAGER_UPDATE_CIRCLE_RADIUS";

        String[] split = source.split(",");

        List<String> newList = Arrays.asList(split);

        Collections.sort(newList);

        newList.forEach(str -> {
            System.out.println(str);
        });

    }
}
